package com.hx.rpc.consumer;

import com.hx.rpc.api.IRpcHelloService;
import com.hx.rpc.api.IRpcService;
import com.hx.rpc.consumer.proxy.RpcProxy;

/**
 * @author Huathy
 * @date 2021-10-23 16:32
 * @description
 */
public class RpcConsumer {
    public static void main(String[] args) {
        IRpcHelloService helloService = RpcProxy.create(IRpcHelloService.class);
        System.out.println(helloService.hello("Huathy"));
//
//        IRpcService service = RpcProxy.create(IRpcService.class);
//        System.out.println("8+2 = " + service.add(8, 2));
//        System.out.println("8-2 = " + service.sub(8, 2));
    }
}
